package com.application.chiettinhdienluc.model;

import java.io.Serializable;
import java.util.ArrayList;

@SuppressWarnings("serial")
public class NhanCongChiTietModel implements Serializable {
	
	//table column names
	private int nhancongChiTietId = -1 ;
	private String bangchiettinhid ;
	private String tenCongviec;
	private String macongviec ;
	private double dongia ;
	private double khoiluong ;
	private double thanhtien ;
	private String quycach ;
	private int hosochiettinhid ;
	private NhanCongModel nhancong;
	private boolean isCheck;
	private String khuvuc;
	private String madinhmuc;
	private int lan;
	private String trangthai;
	
			
	// Empty constructor
	public NhanCongChiTietModel() {

	}
	
	public NhanCongModel getVatTu() {
		return nhancong;
	}

	public void setVatTu(NhanCongModel nhancong) {
		this.nhancong = nhancong;
	}
	
	public String getTrangthai() {
		return trangthai;
	}

	public void setTrangthai(String trangthai) {
		this.trangthai = trangthai;
	}
	
	public int getLan() {
		return lan;
	}

	public void setLan(int lan) {
		this.lan = lan;
	}

	public String getBangChietTinhId() {
		return bangchiettinhid;
	}

	public void setBangChietTinhId(String id) {
		this.bangchiettinhid = id;
	}

	public String getMaCongViec() {
		return macongviec;
	}

	public void setMaCongViec(String macongviec) {
		this.macongviec = macongviec;
	}

	public double getDongia() {
		return dongia;
	}

	public void setDongia(	double dongia) {
		this.dongia = dongia;
	}

	public double getKhoiLuong() {
		return khoiluong;
	}

	public void setKhoiLuong(double khoiluong) {
		this.khoiluong = khoiluong;
	}

	public double getThanhTien() {
		return thanhtien;
	}

	public void setThanhTien(double thanhtien) {
		this.thanhtien = thanhtien;
	}


	public String getQuycach() {
		return quycach;
	}

	public void setQuycach(String Quycach) {
		this.quycach = Quycach;
	}
	

	public int getHoSoChietTinhId() {
		return hosochiettinhid;
	}

	public void setHoSoChietTinhId(int hosochiettinhid) {
		this.hosochiettinhid = hosochiettinhid;
	}
	
	public boolean isCheck() {
		return isCheck;
	}

	public void setCheck(boolean isCheck) {
		this.isCheck = isCheck;
	}

	public String getTenCongviec() {
		return tenCongviec;
	}

	public void setTenCongviec(String tenCongviec) {
		this.tenCongviec = tenCongviec;
	}

	public int getNhancongChiTietId() {
		return nhancongChiTietId;
	}

	public void setNhancongChiTietId(int nhancongChiTietId) {
		this.nhancongChiTietId = nhancongChiTietId;
	}	

	public String getKhuVuc() {
		return khuvuc;
	}

	public void setKhuVuc(String khuvuc) {
		this.khuvuc = khuvuc;
	}

	public String getMadinhmuc() {
		return madinhmuc;
	}

	public void setMadinhmuc(String madinhmuc) {
		this.madinhmuc = madinhmuc;
	}
	
	private int order;
	
	public int getOrder() {
		return order;
	}

	public void setOrder(int order) {
		this.order = order;
	}
	
	private String maDviQly;
	public String getMaDviQly() {
		return maDviQly;
	}

	public void setMaDviQly(String maDviQly) {
		this.maDviQly = maDviQly;
	}
	
	
    private Long chiTietId;
	
	public Long getChiTietId() {
		return chiTietId;
	}

	public void setChiTietId(Long chiTietId) {
		this.chiTietId = chiTietId;
	}
	
	
	public String getJsonString(){
		 
		   String json = "{\"chitietId\": \""+ chiTietId +
					"\", \"banctinhId\": \""+ bangchiettinhid +
					"\", \"maCviec\": \""+ macongviec +
					"\", \"donGia\": \"" + new Double(dongia).longValue() + 
					"\", \"khoiLuong\": \""+ khoiluong +
					"\", \"thanhTien\": \""+ new Double(thanhtien).longValue()  + 
					"\", \"lan\": \""+ 1 +
					"\",\"trangThai\": \""+ 1 +
					"\",\"maDviqly\": \""+maDviQly+"\"}";
		   
		   return json;
			   
	}
	
}
